package com.wangyl.sharding.service.impl;

import com.wangyl.sharding.dal.UserMapper;
import com.wangyl.sharding.model.User;
import com.wangyl.sharding.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：WangYaL on 17/8/19 下午10:01.
 * 邮箱：1007486445@qq.com
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper mapper;

    public long insert(User user) {
        return mapper.insert(user);
    }

    public long update(User user) {
        return mapper.update(user);
    }

    public List<User> getByAppUserId(long appUserId) {
        return mapper.getByAppUserId(appUserId);
    }
}
